package com.dnjn.happiness.biz.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dnjn.happiness.biz.domain.AdviceTags;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 模块功能Mapper接口
 *
 * @author happiness
 * @date 2023-10-14
 */
public interface AdviceTagsMapper extends BaseMapper<AdviceTags> {

//    IPage<AdviceTags> selectListLeftOnUser(Page<AdviceTags> page);
    /**
     * 自定义sql分页
     * @param page
     * @param queryWrapper 看这里看这里，如果自定义的方法中需要用到wrapper查询条件，需要这样写
     * @return
     */
//    IPage<AdviceTags>selectListLeftOnUser(IPage<AdviceTags> page, @Param() Wrapper<AdviceTags> queryWrapper);


    /**
     * 传参
     */
    Page<AdviceTags> pageCommentVoByMap(Page<AdviceTags> pg, @Param("label") String label);

    Page<AdviceTags> selectAdviceTags(@Param("dto") AdviceTags domain, Page page);

    AdviceTags getAdviceTagsById(Long adviceTagsId);

    List<AdviceTags> selectByDeptId(Long deptId);
}
